<?php

use yii\db\Migration;

/**
 * Handles the creation of table `zan_log`.
 */
class m180319_054046_create_zan_log_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function up()
    {
        $this->createTable('zan_log', [
            'id' => $this->primaryKey(),
            'activity_id' => $this->integer(),
            'from_user' => $this->string(64)->notNull()->comment('活动商家id'),
            'to_user' => $this->string(64)->notNull()->comment('活动商家id'),
        ]);
    }

    /**
     * @inheritdoc
     */
    public function down()
    {
        $this->dropTable('zan_log');
    }
}
